<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    <link href="/styles/base.css" rel="stylesheet" type="text/css">
    <link href="/styles/addtravelnote.css" rel="stylesheet" type="text/css">
    <link href="/js/ueditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
    <link href="/js/plugins/datepicker/datepicker.css" rel="stylesheet">

    <script type="text/javascript" src="/js/jquery/jquery.js"></script>
    <script type="text/javascript" charset="utf-8" src="/js/ueditor/umeditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/js/ueditor/umeditor.min.js"></script>
    <script type="text/javascript" src="/js/ueditor/lang/zh-cn/zh-cn.js"></script>
    <script src="/js/plugins/datepicker/datepicker.js"></script>
    <script src="/js/plugins/jquery-form/jquery.form.js"></script>
    <link href="/js/plugins/chosen/chosen.css" rel="stylesheet" type="text/css">

    <link href="/styles/answer.css" rel="stylesheet" type="text/css">

    <script type="text/javascript" src="/js/plugins/chosen/chosen.jquery.js"></script>
    <script type="text/javascript" src="/js/system/common.js"></script>
    <script type="text/javascript" src="/js/system/addanswer.js"></script>
    <script>
        $(function () {

            //保存
            $("#saveAnswer").click(function () {
                $("#editForm").ajaxSubmit(function (data) {
                    if(data){
                        $("#allAnswers").append(data);
                    }else{
                        popup("操作失败");
                    }
                })
            })

            //内容回显
            if(''){
                ue.setContent("");
            }
        })
    </script>
</head>


<body>
    <#assign currentNav="x">
    <#include "../common/navbar.ftl">

    <div class="mainCenter">
        <div id="leftBox">
            <div class="searchBox">
                <input type="text" name="searchInput" id="search_input" value="" placeholder="提问前请先搜索，看看你的问题其他蜂蜂是否已经问过">
            </div>
            <input type="button" class="search_button" data-mddid="0" value="搜">

            <div class="questionContainer">
                <div class="titleContainer">
                    <div class="normalBox">
                        <a href="/wenda/area-187613.html" target="_blank" class="location"><i></i>全球</a>
                    </div>
                    <div style="margin-top: 10px">
                        <h1>${question.questionTitle}</h1>
                    </div>
                </div>

                <div class="describe">
                 ${question.questionSubscribe}
                </div>
            </div>

            <div class="questionInfo">
                <div class="tagContainer">
                    <a class="a-tag" href="/wenda/tag-30779.html" target="_blank">高颜值名宿推荐</a>
                    <a class="a-tag" href="/wenda/area-14383.html" target="_blank">欧洲</a>
                    <a class="a-tag" href="/wenda/tag-2807.html" target="_blank">民宿</a>
                    <a class="a-tag" href="/wenda/tag-1291.html" target="_blank">住宿</a>
                </div>
                <div class="userContainer">
                    <a href="/wenda/u/51146120/answer.html" class="photo" target="_blank"> <img src="${question.userHeadImgUrl}" width="16" height="16" class="photo"></a>
                    <a class="name" href="/wenda/u/51146120/answer.html" target="_blank">${question.userNickName}</a>
                    <span class="time"><span>${question.createTime?string('yyyy.MM.dd HH:mm:ss')}</span></span>
                </div>
            </div>


            <div class="questionInfo">
                <div class="fl">
                    <!-- 邀请回答 -->
                    <div class="">
                        <a class="time">邀请蜂蜂回答</a>
                    </div>
                </div>
                <div class="fr">
                    <span class="atten-num">${question.viewNum}浏览</span>
                    <span class="atten-num"><span class="_j_same_num">${question.focusNum}</span>人关注</span>
                    <a class="normal_button" data-status="1"><span>关注</span></a>

                    <a class="normal_button" >回答</a>
                </div>
            </div>

            <div class="allAnswers" id="allAnswers">

                <div class="answerContainer">

                    <div class="answerUser">
                        <img src="http://p1-q.mafengwo.net/s13/M00/EE/D1/wKgEaVx71V6ADhVvAACHI4NOkqA87.jpeg?imageMogr2%2Fthumbnail%2F%2148x48r%2Fgravity%2FCenter%2Fcrop%2F%2148x48%2Fquality%2F90" width="48" height="48" class="answerUserPhoto">
                        <a class="answerUserName" href="/wenda/u/44398266/answer.html" target="_blank">M姐八国语言</a>
                        <a class="userLevel" href="/rank/lv.php?uid=44398266" target="_blank">LV.20</a>
                    </div>

                    <div class="describe">
                        要看你的旅行是什么性质，如果是去某个非常有趣的地方赶景点时间又不多的话，那么我的经验是，你还是不要求老天给你个热情房东了。
                        你知道热情房东的概念吗，就是他们为你的到来守候，来了之后伺候一杯热情的咖啡，或者茶。。带领你参观整个房子，指导你房子中每个角落和用具的细节。完了之后坐下来喝喝茶，聊你的行程，聊你旅游的动机，聊你明日的早餐要咖啡还是茶。这些之后你就觉得万事了你能终于踏出房门撒欢儿飞了吗，
                        不不，她会热情洋溢的要求帮助，会给你展示所有她收集的该城市情报，旅游小册子，为你查询这两天是不是有演出，有乐队，白天该
                    </div>
                    <div class="answerBottom">
                        <div class="doSomething">
                            <a data-cnum="0" data-default_words="添加评论"><i></i><span>添加评论</span></a>
                        </div>
                        <div class="doSomething">
                            <a class="_j_collect_answer"><i></i>收藏</a>
                        </div>
                        <div class="doSomething">
                            <span>发布于 2019-06-23 14:37</span>
                        </div>
                    </div>

                    <div class="describe">
                        <textarea class="commentArea"></textarea>
                        <span class="time"><span class="time">0</span>/<span class="time">600</span> 字</span>
                        <input class="normal_button" type="button" value="回复">
                    </div>

                </div>

            </div>

            <div class="describe" style="margin-top: 60px">
                <form action="/wenda/saveAnswer" method="post" id="editForm">
                    <input type="hidden" name="questionId" value="${question.id}">
                    <dl class="body cf">
                        <dd id="content_div">
                            <script id="editor" type="text/plain" style="width:100%;height:300px;"></script>
                        </dd>
                    </dl>
                    <input class="normal_button" value="回答" type="button" id="saveAnswer">
                </form>
            </div>

        </div>


        <div id="rightBox">
            <div class="btn-question">
                <a href="/wenda/publish" class="btn-ask" target="_blank">我要提问</a>
            </div>
        </div>

    </div>

    <#include "../common/footer.ftl">
</body>

</html>